package com.yanqu.data.entity;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 历史最大值
 */
@FieldTypeAnnotation(tableName = "t_m_history_get_goods", desc = "历史道具获得最大值")
public class HistoryGoodsGetData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "数据库自增主键")
    private long dbId;

    @FieldTypeAnnotation(desc = "每日零点")
    private int dayTime;

    @FieldTypeAnnotation(desc = "vip等级")
    private int vip;

    @FieldTypeAnnotation(desc = "获取途径")
    private int way;

    @FieldTypeAnnotation(desc = "道具id")
    private int goodsId;

    @FieldTypeAnnotation(desc = "最大值")
    private long maxNum;

    @FieldTypeAnnotation(desc = "最大次数")
    private long maxTimes;

    @FieldTypeAnnotation(desc = "最大值玩家")
    private long maxNumUser;

    @FieldTypeAnnotation(desc = "最大次数玩家")
    private long maxTimesUser;

    //cache 缓存计算后的阈值
    //这个实体也是内存中暂存阈值的载体
    //最大值(maxNum * 倍率)
    private long maxNumAfterRatio;

    //最大次数(maxTimes * 倍率)
    private long maxTimesAfterRatio;

    public long getDbId() {
        return dbId;
    }

    public void setDbId(long dbId) {
        if(this.dbId != dbId) {
            this.dbId = dbId;
            setUpdateOption();
        }
    }

    public int getDayTime() {
        return dayTime;
    }

    public void setDayTime(int dayTime) {
        if(this.dayTime != dayTime) {
            this.dayTime = dayTime;
            setUpdateOption();
        }
    }

    public int getVip() {
        return vip;
    }

    public void setVip(int vip) {
        if(this.vip != vip) {
            this.vip = vip;
            setUpdateOption();
        }
    }

    public int getWay() {
        return way;
    }

    public void setWay(int way) {
        if(this.way != way) {
            this.way = way;
            setUpdateOption();
        }
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        if(this.goodsId != goodsId) {
            this.goodsId = goodsId;
            setUpdateOption();
        }
    }

    public long getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(long maxNum) {
        if(this.maxNum != maxNum) {
            this.maxNum = maxNum;
            setUpdateOption();
        }
    }

    public long getMaxTimes() {
        return maxTimes;
    }

    public void setMaxTimes(long maxTimes) {
        if(this.maxTimes != maxTimes) {
            this.maxTimes = maxTimes;
            setUpdateOption();
        }
    }

    public long getMaxNumUser() {
        return maxNumUser;
    }

    public void setMaxNumUser(long maxNumUser) {
        if(this.maxNumUser != maxNumUser) {
            this.maxNumUser = maxNumUser;
            setUpdateOption();
        }
    }

    public long getMaxTimesUser() {
        return maxTimesUser;
    }

    public void setMaxTimesUser(long maxTimesUser) {
        if(this.maxTimesUser != maxTimesUser){
            this.maxTimesUser = maxTimesUser;
            setUpdateOption();
        }
    }

    public long getMaxNumAfterRatio() {
        return maxNumAfterRatio;
    }

    public void setMaxNumAfterRatio(long maxNumAfterRatio) {
        this.maxNumAfterRatio = maxNumAfterRatio;
    }

    public long getMaxTimesAfterRatio() {
        return maxTimesAfterRatio;
    }

    public void setMaxTimesAfterRatio(long maxTimesAfterRatio) {
        this.maxTimesAfterRatio = maxTimesAfterRatio;
    }
}
